package com.example.attendancesystem.Service;


import com.example.attendancesystem.Models.DataEmp;
import com.example.attendancesystem.Models.DataLeaveRow;
import com.example.attendancesystem.Models.Employee;
import com.example.attendancesystem.Models.News;

import java.util.List;


public interface IndexService {

    /**
     * 分页查询所有员工信息
     *
     * @param offset 第几条记录开始查询
     * @param limit  每页限制条数
     * @return DataV0对象
     */
    DataEmp getAllEmp(Integer offset, Integer limit);

    Boolean checkOPRTPass(String adminNumber, String operaPass);

    Boolean delEmpByNumber(String empNumber);

    DataEmp queryEmpByNameOrNumber(Integer page, Integer limit, String emp);

    Employee getEmpInfoByNumber(String empNumber);

    DataLeaveRow getEmpLeaveRequest();

    Integer getLeaveRequestSum();

    Boolean dealLeaveRequest(Integer result, Integer requestId);

    Employee addEmp(Employee addEmp);

    Boolean updateEmpPass(String empPass, String empQues, String empAns, String empNumber);

    List<Employee> getAllEmpDown();

    boolean updateEmpInfo(Employee employee);

    Boolean addNews(String title,String author,String text);

    News getNewsById(Integer newsId);

    void updateEmpImg(Integer newsId, String savaImgName);
}
